package com.wwj.core.wawa.entity;

import com.wwj.framework.entity.BaseIdEntity;

import java.util.Date;

/**
 * Created by Administrator on 2017/11/2.
 */
public class PlayerItemChangeRecord extends BaseIdEntity<Integer> {
    public static final int TYPE_INCREASE = 1;//增加娃娃币
    public static final int TYPE_DECREASE = 5;//减少娃娃币

    public static final int IN_SUB_TYPE_BUY = 10;//增加--购买
    public static final int IN_SUB_TYPE_REGIST = 11;//增加--注册
    public static final int IN_SUB_TYPE_INVITE = 12;//增加--邀请
    public static final int IN_SUB_TYPE_BIND = 13;//增加--绑定邀请码
    public static final int IN_SUB_TYPE_MANUAL = 14; //增加--后台手动添加
    public static final int IN_SUB_TYPE_REFUND = 15; //增加--系统出错，玩游戏退款

    public static final int DE_SUB_TYPE_PLAY = 51;//减少--玩游戏

    private int playerId;

    private int itemId;

    private int itemNum;

    private int changeType;

    private int subChangeType;

    private String description;

    private int oldNum;

    private int newNum;

    private Date changeTime;

    //如果是和玩游戏有关的消耗、退款，与游戏记录关联
    private int playRecordId;

    public int getPlayerId() {
        return playerId;
    }

    public void setPlayerId(int playerId) {
        this.playerId = playerId;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public int getItemNum() {
        return itemNum;
    }

    public void setItemNum(int itemNum) {
        this.itemNum = itemNum;
    }

    public int getChangeType() {
        return changeType;
    }

    public void setChangeType(int changeType) {
        this.changeType = changeType;
    }

    public int getSubChangeType() {
        return subChangeType;
    }

    public void setSubChangeType(int subChangeType) {
        this.subChangeType = subChangeType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getOldNum() {
        return oldNum;
    }

    public void setOldNum(int oldNum) {
        this.oldNum = oldNum;
    }

    public int getNewNum() {
        return newNum;
    }

    public void setNewNum(int newNum) {
        this.newNum = newNum;
    }

    public Date getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Date changeTime) {
        this.changeTime = changeTime;
    }

    public int getPlayRecordId() {
        return playRecordId;
    }

    public void setPlayRecordId(int playRecordId) {
        this.playRecordId = playRecordId;
    }
}
